package cn.minsh.lims.eoms.modules.app.service;

import cn.minsh.lims.eoms.common.utils.PageUtils;
import cn.minsh.lims.eoms.modules.app.controller.req.UserInspectionPlanReq;
import cn.minsh.lims.eoms.modules.app.controller.req.app.AppUserInspectionListReq;
import cn.minsh.lims.eoms.modules.app.controller.req.app.AppUserInspectionSubmitAndCloseReq;
import cn.minsh.lims.eoms.modules.app.controller.req.app.AppUserInspectionSubmitResultReq;
import cn.minsh.lims.eoms.modules.app.controller.res.*;
import cn.minsh.lims.eoms.modules.app.entity.PlanScopeEntity;
import cn.minsh.lims.eoms.modules.app.entity.UserInspectionPlanEntity;
import cn.minsh.lims.eoms.modules.app.entity.UserInspectionPlanScopeEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 用户巡检计划
 *
 * @author lht
 * @email sunlightcs@gmail.com
 * @date 2021-04-26 02:30:42
 */
public interface UserInspectionPlanService extends IService<UserInspectionPlanEntity> {


    PageUtils queryPage(UserInspectionPlanReq req);

    void saveBatchUserPlan(List<InspectionPlanRes> list);

    UserInspectionPlanInfoRes queryById(Long id);

    PageUtils queryAppPage(AppUserInspectionListReq req,Long userId);

    void submitAndClose(AppUserInspectionSubmitAndCloseReq req,Long userId);

    void close(Long id, Long userId);

    void submitResult(AppUserInspectionSubmitResultReq req, Long userId);

    InspectionOrderInfoByPlanIdRes queryByPlanId(Long id,Long userId);

    UserInspectionPlanInfoForPlatRes queryPlatInfoById(Long id);

    List<EquipmentStatusRes> getEquipmentStatusList();
}

